package com.biodiv.miracle.event;

/**
 * @author: tianquan
 * @date: 2025-05-28  09:27
 * @description: 错误事件
 */
public class ErrorEvent extends EventObject {

    private Throwable throwable;

    public ErrorEvent(Object source) {
        super(source);
    }

    public ErrorEvent(Object source, Throwable throwable) {
        super(source);
        this.throwable = throwable;
    }

    public Throwable getThrowable() {
        return throwable;
    }

}
